import request from '../utils/request.axios';
import { API } from '../config/API';

// 分页查询用户
export async function findUser(params) {
  return request(`${API}/api/users`, {
    method: 'GET',
    body: params,
  });
}


// 获取用户详情
export async function gerUserDetail(params) {
  return request(`${API}/api/user`, {
    method: 'GET',
    body: params,
  });
}

// 获取用户信息
export async function getUserInfo(params) {
  return request(`${API}/api/user`, {
    method: 'GET',
    body: params,
  });
}
